import MyComponent from "../../../scripts/common/MyComponent";

const { ccclass, property, menu } = cc._decorator;

@ccclass
@menu("测试组件/ListItemTest")
export default class ListItemTest extends MyComponent {
  constructor() {
    super();
  }

  private node_wb: cc.Node = null;
  refreshUI(order: number) {
    this.node_wb.children.forEach((node) => {
      let cmp = node.getComponent(cc.Label);
      if (cmp) {
        cmp.string = order.toString();
      }
    });
  }
}
